package switchviz.core.view;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import switchviz.graphic.gauge.GaugeNodeModel;

public class ViewDataModel 
{
	private String _name = "New View";
	private String _description = "";
	private List<GaugeNodeModel> _gaugelist = new ArrayList<GaugeNodeModel>();
	private File _file = null;
	private float[] _bgcolor = {0.0f, 0.0f, 0.0f};
	private boolean _displayNotConnected = true;
	
	private float _rotX = 20.0f;
	private float _rotY = -30.0f;
	
	public void setName(String name)
	{
		_name = name;
	}
	
	public String getName()
	{
		return _name;
	}
	
	public void setBGColor(float[] bgcolor)
	{
		_bgcolor = bgcolor;
	}
	
	public float[] getBGColor()
	{
		return _bgcolor;
	}
	
	public void setDescription(String description)
	{
		_description = description;
	}
	
	public String getDescription()
	{
		return _description;
	}
	
	public void setDisplayNotConnected(boolean displayNotConnected)
	{
		_displayNotConnected = displayNotConnected;
	}
	
	public boolean isDisplayNotConnected()
	{
		return _displayNotConnected;
	}
	
	public void setGaugeList(List<GaugeNodeModel> gaugelist)
	{
		_gaugelist = gaugelist;
	}
	
	public List<GaugeNodeModel> getGaugeConfList()
	{
		return _gaugelist;
	}
	
	public void setFile(File file)
	{
		_file = file;
	}
	
	public File getFile()
	{
		return _file;
	}
	
	public float getRotX() {
		return _rotX;
	}

	public void setRotX(float rotX) {
		this._rotX = rotX;
	}

	public float getRotY() {
		return _rotY;
	}

	public void setRotY(float rotY) {
		this._rotY = rotY;
	}

	public ViewDataModel()
	{
		
	}
	
	public ViewDataModel(String name, String description, File file, float[] bgcolor, List<GaugeNodeModel> gaugelist)
	{
		this.setName(name);
		this.setDescription(description);
		this.setBGColor(bgcolor);
		this.setFile(file);
		this.setGaugeList(gaugelist);
	}
	
	public String toString()
	{
		return _name;
	}
}
